'use strict';

/** @type Egg.EggPlugin */
module.exports = {
  // had enabled by egg
  // static: {
  //   enable: true,
  // }
  // redis: {
  //   enable: true,
  //   package: 'egg-redis'
  // },
  mysql: {
    enable: true,
    package: 'egg-mysql',
  },
  jwt: {
    enable: true,
    // eslint-disable-next-line eggache/no-unexpected-plugin-keys
    ignore: [ '/api/v1/test/', '/public/' ], // 哪些请求不需要认证
    package: 'jsonwebtoken',
  },
  cors: {
    enable: true,
    package: 'egg-cors',
  },
};
